package com.atguigu.bigdata.scala.bean;

public class Student extends Person {
    public int age = 20;

    public void test() {
        // super关键字不会在执行过程中出现，在编译时由编译器转换为父类类型
        System.out.println(super.age);
        System.out.println(this.age);
    }

    public Student() {

    }
    public Student( int age ) {
        this.age = age;
    }
}
